package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Document;
import com.arangodb.springframework.annotation.HashIndex;
import com.arangodb.springframework.annotation.Relations;
import com.newegg.nlp.arangodb.BaseModel;

@Document("keyword")
@HashIndex(fields = { "name" }, unique = true)
public class Keyword extends BaseModel{

	//展示名称
	String name;
	
	//名词
	@Relations(edges=KeywordNoun.class)
	Noun noun;
	
	//形容词
	@Relations(edges=KeywordAdjective.class)
	Adjective adjective;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Noun getNoun() {
		return noun;
	}

	public void setNoun(Noun noun) {
		this.noun = noun;
	}

	public Adjective getAdjective() {
		return adjective;
	}

	public void setAdjective(Adjective adjective) {
		this.adjective = adjective;
	}
}
